package com.kalle.workflow.service.impl;

import com.kalle.workflow.mapper.TaskMapper;
import com.kalle.workflow.query.TaskQuery;
import com.kalle.workflow.service.TaskService;
import org.apache.ibatis.session.SqlSession;

public class TaskServiceImpl implements TaskService {

    private final TaskMapper taskMapper;

    public TaskServiceImpl(SqlSession sqlSession) {
        this.taskMapper = sqlSession.getMapper(TaskMapper.class);
    }

    public TaskQuery createQuery() {
        return new TaskQuery(taskMapper);
    }

}
